﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Sysgeprava.Entities;

namespace Sysgeprava.Repository
{
    public interface IControlRepository
    {
        List<CONTROL> GetAllFromControl();
        List<CONTROL> GetAllFromControlByCriterio(string criterio);
        CONTROL GetAllFRomControlById(Int32 id);

        bool ExisteDuplicidad(string criterio, Int32 id);

        void AddControl(CONTROL control);
        void UpdateControl(CONTROL control);
        void DeleteControl(Int32 id);
    }
}
